<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>梦幻西游</title>
    <style>
        body{
            margin:0;
            padding:0;
        }
        ul{
            margin:0;
            padding:0;
        }
        .main{
            width: 100%;
            overflow-x: hidden;
            height: 786px;
        }
        .main>.bg{
            width: 3840px; ;
            height: 100%;
            /* margin-left: -1920px; */
            background-image: url("./img/梦幻西游.jpg");
            background-repeat: repeat-x;
            animation-name: bg;
            animation-duration: 30s;
            animation-timing-function: linear;
            animation-iteration-count: infinite;
        }

        @keyframes bg{
            from{
                margin-left: -1920px;
            }
            to{
                margin-left: 0;
            }
        }
        .content{
            width:1000px;
            position: absolute;
            left:50%;
            margin-left: -500px;
            bottom: 100px;
        }
        .content>ul::after{
            display: block;
            content: "";
            clear: both;
        }
        .content>ul>li{
            float:left;
            width:200px;
            margin-right: 30px;
            overflow: hidden;
        }
        .content>ul>li>img{
            width: 1600px;
            animation-name: people;
            animation-duration: 1s;
            animation-timing-function: steps(8);
            animation-iteration-count: infinite;

        }
        @keyframes people{
            from{
                margin-left: 0;
            }
            to{
                margin-left: -1600px;
            }
        }
    </style>
</head>
<body>
    <div class="main">
        <div class="bg">
            <div class="content">
               <ul>
                   <li><img src=".\img\悟空.jpg" alt="悟空打妖怪去啦"></li>
                   <li><img src=".\img\唐僧.jpg" alt=""></li>
                   <li><img src=".\img\八戒.jpg" alt=""></li>
                   <li><img src=".\img\沙僧.jpg" alt=""></li>
               </ul>
            </div>
         
        </div>
    </div>
</body>
</html>